package com.firebird.app.fekpsl.mvp.sword.rank

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by firebird on 2018/4/21.
 */
class FanRankPresenter : BasePresenter<FanRankContract.Model, FanRankContract.View>(), FanRankContract.Presenter {

    override fun createModel(): FanRankContract.Model? = FanRankModel()

    override fun getFanRankList(pageNo: Int) {
        mModel?.getFanRankList(pageNo)?.ss(mModel, mView) {
            mView?.showFanRankList(it.data)
        }
    }

}